﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<PagedList<CourseSystem.Core.Entities.CommonResourcesInfo>>" %>
<%@ Import Namespace="CourseSystem.Common.Helpers" %>
<%@ Import Namespace="Webdiyer.WebControls.Mvc" %>
<table width="960" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td height="28" background="<%=ResolveUrl("~/Content/images/k_16.jpg") %>">
            <table width="960" height="25" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td width="20">
                    </td>
                    <td width="891" class="style10">
                        热门视频
                    </td>
                    <td width="49">
                        <a href="<%=Url.Action("Index","Resources",new{type=5}) %>">
                            <img src="<%=ResolveUrl("~/Content/images/bai.gif") %>" width="49" height="28" border="0" /></a>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td height="200" align="center" background="<%=ResolveUrl("~/Content/images/k_18.jpg") %>">
            <table width="950" height="200" border="0" cellpadding="0" cellspacing="0">
                <tr align="center" valign="middle">
                    <% 
                        foreach (var item in Model)
                        {

                            if (string.IsNullOrEmpty(item.CoverImg))
                            {
                                item.CoverImg = "Content/images/videoCover.jpg";
                            }
                    %>
                    <td>
                        <a href="<%=Url.Action("View","Resources",new{item.Id}) %>">
                            <img src="<%= ResolveUrl("~/"+item.CoverImg) %>" width="206" height="168" /></a>
                        <div class="videoDiv">
                            <%=TextHelper.DisplayText(item.Title,15)%></div>
                    </td>
                    <% } %>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td height="3" background="<%=ResolveUrl("~/Content/images/k_20.jpg") %>">
        </td>
    </tr>
</table>
